package br.com.insula.twithis.persistence.dao;

import br.com.insula.twithis.persistence.model.User;

public class LoginDao extends PersistentStoreDao {

	protected long getPersistentObjectId() {
		return 0xc84c09bead74d821L;
	}

	public void save(User user) {
		getPersistentObject().setContents(user);
		getPersistentObject().commit();
	}

	public User getUser() {
		Object object = getPersistentObject().getContents();
		if (object == null)
			return null;
		else
			return (User) object;
	}

}
